package com.efast.dmom.mes.entity;

import java.time.LocalDateTime;

import com.efast.dmom.mes.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;

public class ProductionPiecePartEntity extends BaseEntity{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1913214132776874993L;

	private long piecePartId;
	
	private long warehouseId;
	
	private String warehouseNo;
	
	private String warehouseName;
	
	private String piecePartCode;
	
	private String piecePartName;
	
	private int piecePartQty;
	
	private long partId;
	
	private long operationId;
	
	private long equipId;
	
	private long spareId;
	
	private String operationType;
	
	private String submittedWorkUser;
	
	@JsonDeserialize(using = LocalDateDeserializer.class)
	@JsonSerialize(using = LocalDateSerializer.class)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd hh:mm:ss")
	private LocalDateTime submittedWorkDate;
	
	private int isFlag;
	
	public long getEquipId() {
		return equipId;
	}

	public void setEquipId(long equipId) {
		this.equipId = equipId;
	}

	public long getSpareId() {
		return spareId;
	}

	public void setSpareId(long spareId) {
		this.spareId = spareId;
	}

	public String getWarehouseNo() {
		return warehouseNo;
	}

	public void setWarehouseNo(String warehouseNo) {
		this.warehouseNo = warehouseNo;
	}

	public String getWarehouseName() {
		return warehouseName;
	}

	public void setWarehouseName(String warehouseName) {
		this.warehouseName = warehouseName;
	}

	public String getPiecePartCode() {
		return piecePartCode;
	}

	public void setPiecePartCode(String piecePartCode) {
		this.piecePartCode = piecePartCode;
	}

	public String getPiecePartName() {
		return piecePartName;
	}

	public void setPiecePartName(String piecePartName) {
		this.piecePartName = piecePartName;
	}

	public String getOperationType() {
		return operationType;
	}

	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}

	public long getPiecePartId() {
		return piecePartId;
	}

	public void setPiecePartId(long piecePartId) {
		this.piecePartId = piecePartId;
	}

	public int getPiecePartQty() {
		return piecePartQty;
	}

	public void setPiecePartQty(int piecePartQty) {
		this.piecePartQty = piecePartQty;
	}

	public long getPartId() {
		return partId;
	}

	public void setPartId(long partId) {
		this.partId = partId;
	}

	public long getOperationId() {
		return operationId;
	}

	public void setOperationId(long operationId) {
		this.operationId = operationId;
	}

	public String getSubmittedWorkUser() {
		return submittedWorkUser;
	}

	public void setSubmittedWorkUser(String submittedWorkUser) {
		this.submittedWorkUser = submittedWorkUser;
	}

	public LocalDateTime getSubmittedWorkDate() {
		return submittedWorkDate;
	}

	public void setSubmittedWorkDate(LocalDateTime submittedWorkDate) {
		this.submittedWorkDate = submittedWorkDate;
	}

	public int getIsFlag() {
		return isFlag;
	}

	public void setIsFlag(int isFlag) {
		this.isFlag = isFlag;
	}

	public long getWarehouseId() {
		return warehouseId;
	}

	public void setWarehouseId(long warehouseId) {
		this.warehouseId = warehouseId;
	}
	
	

}
